tuple_month = (31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31)
str_today = input('请输入日期：')
today_month = int(str_today.split('月')[0])
today_day = int(str_today.split('月')[1].split('日')[0])

days = 0
# for month in range(today_month - 1):
#     days += tuple_month[month]
days = sum(tuple_month[:today_month-1])
days += today_day
print('总共%d天' % days)
